
        <div class="gallery">
            <?php foreach ($gallery as $element): ?>
                <div class="col-xs-2">
                    <div class="panel panel-primary galleryElement" data-title="Opis zdjęcia"   data-content="<?php echo($element->getDescription()) ?>">
                        <div class="panel-heading">
                            <h3 class="panel-title"><?php echo($element->getName()); ?></h3>
                        </div>
                        <div class="panel-body">
                            <a href="/uploads/images/<?php echo($element->getFile()); ?>" data-lightbox="image-1" data-title="<?php echo($element->getDescription()); ?>">
                                <img class="galleryThumb img-thumbnail img-rounded" src="/uploads/images/<?php echo($element->getFile()); ?>" />
                            </a>
                        </div>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>